s=1
sum=0
for i in range(1,100+1):
    s*=i
print s
while s>0:
    sum+=s%10
    s/=10
print sum






        
